int lutthin1[512]=			{0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,1,1,1,1,0,1,1 \
							,1,1,1,1,0,0,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,0,1,1,1,0,1,1,0,0,1,1 \
							,0,0,1,1,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,0,0,0 \
							,0,0,0,0,1,1,1,1,0,0,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,1,1,0,0,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,0,0,0,0,0,0,0,1,1,1,1 \
							,0,0,1,1,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,0,1,1 \
							,1,0,1,1,1,1,0,0,1,1,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,0,0,0,0,0,0,0 \
							,1,1,1,1,0,0,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,0,1,1,1,0,1,1,1,1,0,0 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,0,1,1,1,0,1,1 \
							,0,0,1,1,0,0,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,1,1,0,0,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,0,0,0,0,0,0,0 \
							,1,1,1,1,0,0,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,0,1,1,1,0,1,1,1,1,0,0 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,0,0,0 \
							,0,0,0,0,1,1,1,1,0,0,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,0,1,1,1,0,1,1 \
							,1,1,0,0,1,1,0,0};

int lutthin2[512]=			{0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,1,0,1 \
							,0,0,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,1,1,1,0,1,1,1,1,1,1,1 \
							,1,1,1,1,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,1,1,1 \
							,1,1,1,1,0,1,1,1,1,1,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,1,1,1,1,1,1 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,1,1,1,1,1,1,1,1,1,1,1 \
							,1,1,1,1,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,1,1 \
							,1,1,1,1,1,1,0,0,1,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,1,1,1,1,1,1,1 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,1,0,1,0,1,0,1,1,0,0 \
							,1,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,1,1,1 \
							,1,1,1,1,1,1,1,1,1,1,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,1,1,1,1,1,1,1 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,1,1,1,0,1,0,1,1,1,1 \
							,1,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,1,0 \
							,1,0,1,0,1,1,0,0,1,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,1,1,1,1,1,1,1 \
							,1,1,1,1,1,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,1,1,1,1,1,1,1,1,0,0 \
							,1,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,1,1 \
							,1,0,1,0,1,1,1,1,1,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,1,0,1,0,1,0 \
							,1,1,0,0,1,0,0,0};

int lutthin3[512]=			{0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,1,1,1,1,1,1 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,1,1,1,1,1,1,1,1,1,1 \
							,1,1,1,1,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,1,1 \
							,1,1,1,1,1,1,1,1,1,1,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,1,1,1,1,1,1 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,1,1 \
							,1,1,1,1,1,1,1,1,1,1,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,1,1,1,1,1,1 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,1,1,1,1,1,1,1,1,1,1 \
							,1,1,1,1,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,1,1 \
							,1,1,1,1,1,1,1,1,1,1,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,1,1,1,1,1,1 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,1,1,1,1,1,1,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0};

int lutthin4[512]=			{0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,0,1,1,1,0,0 \
							,1,1,0,1,1,1,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,0,0,1,1,0,0,1,1,0,0 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,0,1 \
							,1,1,0,0,1,1,0,1,1,1,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,0,0,1,1,0,0 \
							,1,1,0,0,1,1,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,0,1,1,1,0,0,1,1,0,1 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,0,0 \
							,1,1,0,0,1,1,0,0,1,1,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,0,1,1,1,0,0 \
							,1,1,0,1,1,1,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,0,0,1,1,0,0,1,1,0,0 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,0,1 \
							,1,1,0,0,1,1,0,1,1,1,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,0,0,1,1,0,0 \
							,1,1,0,0,1,1,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,0,1,1,1,0,0,1,1,0,1 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,0,0 \
							,1,1,0,0,1,1,0,0,1,1,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,0,1,1,1,0,0 \
							,1,1,0,1,1,1,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,1,1,0,0,1,1,0,0,1,1,0,0 \
							,1,1,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,0,0,0,0,1,1,0,1 \
							,1,1,0,0,1,1,0,1,1,1,0,0 \
							,0,0,0,0,0,0,0,0,0,0,0,0 \
							,0,0,0,0,1,1,0,0,1,1,0,0 \
							,1,1,0,0,1,1,0,0};
